<?php /*a:4:{s:64:"D:\project\recovery\admin\application\admin\view\order\info.html";i:1608469720;s:65:"D:\project\recovery\admin\application\admin\view\common\form.html";i:1608111012;s:64:"D:\project\recovery\admin\application\admin\view\common\css.html";i:1607417184;s:63:"D:\project\recovery\admin\application\admin\view\common\js.html";i:1607417153;}*/ ?>
<!DOCTYPE html>
<html lang="en"  style="overflow-x:hidden;">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>管理后台</title>
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="apple-mobile-web-app-title" content="管理后台" />
    <link rel="stylesheet" href="https://img.ltwtx.com/css/amazeui.min.css" />
<link rel="stylesheet" href="https://img.ltwtx.com/css/amazeui.datatables.min.css" />
<link rel="stylesheet" href="https://img.ltwtx.com/css/app.css">
<style type="text/css">
    #widgets>.am-u-sm-12>.widget{overflow-x: scroll;}
    .tpl-content-wrapper>div{overflow: hidden}
</style>
</head>

<body>

<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
    <div class="widget am-cf">
        <div class="widget-head am-cf">
            <div class="widget-title am-fl">用户信息</div>
        </div>
        <div class="widget-body am-fr">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <table width="100%" class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black " id="example-r">
                    <tbody>

                    <tr class="even gradeC">
                        <td>订单号</td>
                        <td style="color:red;"><?php echo htmlentities($info['order_number']); ?></td>
                    </tr>
                    <tr class="gradeX">
                        <td>回收类型</td>
                        <td><?php echo htmlentities($info['type_name']); ?></td>
                    </tr>
                    <tr class="gradeX">
                        <td>订单状态</td>
                        <td> <?php echo $info['order_status']==0 ? "未接单" : ""; ?><?php echo $info['order_status']==1 ? "已接单" : ""; ?><?php echo $info['order_status']==2 ? "已完成" : ""; ?><?php echo $info['order_status']==6 ? "已取消" : ""; ?></td>
                    </tr>
                    <tr class="even gradeC">
                        <td>下单人</td>
                        <td><?php echo htmlentities($info['true_name']); ?>(<?php echo $info['address_type']=="1" ? "住宅 " : ""; ?><?php echo $info['address_type']=="2" ? "商铺" : ""; ?><?php echo $info['address_type']=="3" ? "写字楼" : ""; ?><?php echo $info['address_type']=="4" ? "工厂" : ""; ?>)</td>
                    </tr>

                    <tr class="even gradeC">
                        <td>下单人电话</td>
                        <td><?php echo htmlentities($info['phone']); ?></td>
                    </tr>
                    <tr class="even gradeC">
                        <td>下单地址</td>
                        <td><?php echo htmlentities($info['address']); ?> <?php echo htmlentities($info['address_name']); ?> <?php echo htmlentities($info['floor_address']); ?></td>
                    </tr>
                    <tr class="even gradeC">
                        <td>预估重量</td>
                        <td><?php echo $info['weight_type']==1 ? "20-50公斤" : ""; ?>
                            <?php echo $info['weight_type']==2 ? "50-100公斤" : ""; ?>
                            <?php echo $info['weight_type']==3 ? "100公斤以上" : ""; ?></td>
                    </tr>
                    <tr class="even gradeC">
                        <td>下单备注</td>
                        <td><?php echo htmlentities($info['remarks']); ?> </td>
                    </tr>
                    <tr class="even gradeC">
                        <td>下单拍照</td>
                        <td>
                            <?php foreach($info['images'] as $v): ?>
                                    <img src="<?php echo htmlentities($v); ?>" style="width: 80px;height: 80px;">
                            <?php endforeach; ?>

                        </td>
                    </tr>
                    <tr class="even gradeC">
                        <td>预约时间</td>
                        <td><?php echo htmlentities($info['appointment_date']); ?> <?php echo htmlentities($info['appointment_time']); ?></td>
                    </tr>
                    <tr class="even gradeC">
                        <td>下单时间</td>
                        <td><?php echo htmlentities($info['create_time']); ?></td>
                    </tr>
                    <tr class="even gradeC">
                        <td>所属片区</td>
                        <td><?php echo htmlentities($info['region_name']); ?></td>
                    </tr>
                    <?php if($info['order_status'] ==1 ||  $info['order_status'] ==2): ?>
                        <tr class="even gradeC">
                            <td>回收员</td>
                            <td><?php echo htmlentities($info['accept_user_name']); ?></td>
                        </tr>
                        <tr class="even gradeC">
                            <td>回收员电话</td>
                            <td><?php echo htmlentities($info['accept_user_phone']); ?></td>
                        </tr>
                        <tr class="even gradeC">
                            <td>接单时间</td>
                            <td><?php echo htmlentities($info['accept_time']); ?></td>
                        </tr>
                        <?php if($info['order_status'] ==2): ?>
                            <tr class="even gradeC">
                                <td>完成时间</td>
                                <td><?php echo htmlentities($info['success_time']); ?></td>
                            </tr>
                            <tr class="even gradeC" style="color: red;">
                                <td>结算金额</td>
                                <td><?php echo htmlentities($info['total_money']); ?></td>
                            </tr>
                            <tr class="even gradeC">
                                <td>结算积分</td>
                                <td><?php echo htmlentities($info['total_integral']); ?></td>
                            </tr>
                            <?php foreach($info['details'] as $v): ?>
                                    <tr class="even gradeC" >
                                        <td>结算商品</td>
                                        <td style="padding-left: 20px;"><?php echo htmlentities($v['small_type_name']); ?> ： <?php echo htmlentities($v['number']); ?><?php echo htmlentities($v['unit']); ?> * <?php echo htmlentities($v['price']); ?>元 = <?php echo htmlentities($v['number']*$v['price']); ?></td>
                                    </tr>

                            <?php endforeach; ?>
                        <?php endif; ?>
                    <?php endif; ?>




                    </tbody>
                </table>

            </div>
        </div>
    </div>
</div>

<script src="https://img.ltwtx.com/js/jquery.min.js"></script>

<script src="https://img.ltwtx.com/js/theme.js"></script>
<script src="https://img.ltwtx.com/js/amazeui.min.js"></script>
<script src="https://img.ltwtx.com/js/amazeui.datatables.min.js"></script>
<script src="https://img.ltwtx.com/js/dataTables.responsive.min.js"></script>
<script src="https://img.ltwtx.com/js/app.js"></script>
<script src="https://cdn.bootcss.com/layer/2.1/layer.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/js-sha1/0.6.0/sha1.min.js"></script>
<script type="text/javascript">

    $(function () {
        // $('.widget').parent().css("overflow","hidden")
        // $('.widget').parent().css("height",($('.widget').parent().height()-20)+"px")
        // $('.widget').parent().css("height",($('.widget').parent().height()-20)+"px")
        // $('.widget').css('height',($('.widget').height()+40)+"px")
        $('#widgets>.am-u-sm-12>.widget').css('height',"615px")
    })

</script>
<script type="text/javascript">

    $('.widget').css('min-height',($(document).height()-30)+'px');
    var is_ajax = 1;
    function add(url,form) {
         if(is_ajax ==0) return;
        is_ajax =0;
        var data = $(form).serializeArray();
        for(var j=0;j<data.length;j++){
            if(data[j].name.charAt(data[j].name.length-1) !=']'){
                var obj = $('input[name='+data[j].name+']').eq(0);
                if(!required){
                    obj =  $('select[name='+data[j].name+']').eq(0);
                }
                var required = obj.attr('required');
                if(required == 'required'){
                    if(!obj.val()){
                        var name = obj.parent('div').prev('label').html();
                        layer.alert(name+"不能为空！",{icon:5})
                        return;
                    }
                }
            }

        }
        $.post(url,$(form).serialize(),function (res) {
            is_ajax =1;
            if(res.code!=0){
                layer.alert(res.msg,{icon:5})
            }else{
                layer.alert('操作成功!',{icon:6},function () {
                    var index = parent.layer.getFrameIndex(window.name);
                    window.parent.location.reload();
                    parent.layer.close(index);//关闭当前页

                })
            }
        },'json')
    }


</script>

</body>
</html>